using BlogExample.Core.Domain;

namespace BlogExample.Core.Services
{
	public interface IDisplayStrategy
	{
		bool Matches(DomainEntity entity);
		string GetEntityDescription(DomainEntity entity);
	}

	public class DefaultDisplayStrategy : IDisplayStrategy
	{
		public bool Matches(DomainEntity entity)
		{
			return true;
		}

		public string GetEntityDescription(DomainEntity entity)
		{
			return entity.EntityDescription;
		}
	}
}